SUTIL_CPPFILE = MutexLocker.cpp Resource.cpp ResourcePool.cpp SMsg.cpp INIParser.cpp
SUTIL_TARGET = ../../../lib/libsutil.so 
TARGETS = $(SUTIL_TARGET)
SUTIL_OBJFILE = $(patsubst %.cpp, %.o, $(SUTIL_CPPFILE))
CXX = g++
INC_DIR = -I../../../3party/log4cxx/include -I../include

CXXFLAGS = -g -Wall -O2

.PHONY : all

all: $(TARGETS) 

$(SUTIL_TARGET): $(SUTIL_OBJFILE)
	        $(CXX) --share $(CXXFLAGS) $^ $(LIBS) -o $@

%.o : %.cpp
	        $(CXX) -c $(CXXFLAGS) $(INC_DIR) $< -o $@

.PHONY : clean

clean:
	        rm -f *.o $(TARGETS)
